<?php

namespace catchAdmin\apidoctor\validate;

use think\Validate;

class RcValidate extends Validate
{
    protected $rule = [
        'doctor_code' => 'require',
        'class_id' => 'require',
        'className' => 'require'
    ];

    protected $message = [
        'doctor_code.require' => '缺少doctor_code参数',
        'class_id.require' => '缺少class_id参数',
        'className.require' => '缺少className参数'
    ];

    protected $scene = [
        'get_rc_class' => ['doctor_code'],
        'get_rc_case_list' => ['class_id'],
        'create_doctor_case_class' => ['doctor_code','className']
    ];  
}